//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class FruitTreeWateringStart extends LogicCommand {
    final int cmdId = 65;
    final int treeId;

    public FruitTreeWateringStart(int ticks, int treeId) {
        super(ticks);
        this.treeId = treeId;
    }

    public int getCommandId() {
        return 65;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(65);
        stream.writeInt(this.treeId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
